{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "#创建仓库\n",
    "mkdir learngit\n",
    "cd learngitpwd\n",
    "/Users/michael/learngit\n",
    "#初始化\n",
    "git init\n",
    "#添加文件到本地仓库\n",
    "git add file_name\n",
    "#把文件提交到仓库\n",
    "git commit -m \"description\"\n",
    "#与远程仓库建立建立\n",
    "git remote add origin\n",
    "#提交到仓库\n",
    "git push"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
